package com.gitee.starblues.example.rest;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author starBlues
 * @version 1.0
 */
@RestController("mainHello")
@RequestMapping("/main/hello")
@Api(tags = "main-hello")
public class HelloController {
    
    
    @GetMapping
    public String hello(@RequestParam(value = "name", required = false) String name){
        return "hello:" + name;
    }
    
}
